import request from '@/utils/request'

// 查询随访模板 列表
export function listFollowTemp(query) {
  return request({
    url: '/research/followTemp/list',
    method: 'get',
    params: query
  })
}

// 查询随访模板 详细
export function getFollowTemp(followTempId) {
  return request({
    url: '/research/followTemp/' + followTempId,
    method: 'get'
  })
}

// 新增随访模板
export function addFollowTemp(data) {
  return request({
    url: '/research/followTemp',
    method: 'post',
    data: data
  })
}

// 修改随访模板
export function updateFollowTemp(data) {
  return request({
    url: '/research/followTemp',
    method: 'put',
    data: data
  })
}

// 删除随访模板
export function delFollowTemp(followTempId) {
  return request({
    url: '/research/followTemp/' + followTempId,
    method: 'delete'
  })
}
